﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace spriteData
{
    class XModule
    {
        public XModule()
        {

        }
        private int id;
        private int imageId;
        private XRectangle moduleRect;
        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public int ImageId
        {
            get { return this.imageId; }
            set { this.imageId = value; }
        }
        public XRectangle ModuleRect
        {
            get { return this.moduleRect; }
            set { this.moduleRect = value; }
        }
        public void serial(BinaryWriter bw)
        {
            bw.Write(id);
            bw.Write(imageId);
            moduleRect.serial(bw);
        }
    }
}
